<!DOCTYPE html>
<html>
<head>
    <title>选择规程</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 3px 0px"></Row>
        <table id="jqGrid"></table>
    </div>
</div>
<script>
    $(function () {
        var planId = getQueryString("planId");
        $("#jqGrid").Grid({
            url: '../devmaintenplan/listByEnd?planId=' + planId,
            colModel: [
                {label: '规程名称', name: 'ruleName', index: 'RULE_NAME'},
                {label: '版本', name: 'planVersion', index: 'PLAN_VERSION', width: 50},
                {label: '工序号或自编号', name: 'proce', index: 'DEV_PROCE_NO', width: 50},
                {label: '设备名称', name: 'deviceName', index: 'DI.DEV_NAME', width: 60},
                {label: '内容', name: 'planCon', index: 'PLAN_CON', width: 80},
                {label: 'id', name: 'id', index: 'ID', key: true, hidden: true},
            ]
        })
    })
    var vm = new Vue({
        el: '#rrapp',
        data: {
            showList: true,
            title: null,
            title_plan: '',
            devMaintenPlan: {},
            typeList: enumsToList('MAINTENPLAN_TYPE'),//类型
        }
    });
    getDatas = function () {
        var id = getSelectedRows("#jqGrid");
        return id
    }
</script>
</body>
</html>
